home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4215 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: newsroom.utas.edu.au!usenet
  2. From: nring@dslip17.its.utas.edu.au (Nick Ring)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ARexx Questions
  5. Date: 25 Feb 1996 20:15:37 GMT
  6. Organization: Private
  7. Distribution: world
  8. Message-ID: <4gqg19$2mv@franklin.its.utas.edu.au>
  9. References: <4gkpac$65c@epervier.CC.UMontreal.CA>
  10. NNTP-Posting-Host: dslip17.its.utas.edu.au
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset=iso-8859-1
  13. Content-Transfer-Encoding: 8bit
  14. X-NewsSoftware: GRn 2.1 Feb 19, 1994
  15.  
  16. In article <4gkpac$65c@epervier.CC.UMontreal.CA> girardm@ERE.UMontreal.CA (Girard Michel) writes:
  17. >>Girard Michel (girardm@ERE.UMontreal.CA) wrote:
  18. >>>: Second:
  19. >>>:  When the ARexx script is launch by Opus5, how can you know from where(path)
  20. >>>:  the script come from.
  21.  
  22. >>crnt_dir = pragma('D')
  23.  
  24. >No when you do that you've got the path from where Opus5 start, in my case
  25. > sys:WBStartup.
  26. >And the only options opus offer is -CD Source or -CD Dest.!!!???
  27.  
  28. Sorry, I forgot about that, as I haven't use DOpus for ages.  You could
  29. when calling the ARexx script, have a CLI option where the current
  30. selected directory is passed to the script, ie.
  31.  
  32. some_script.rexx CD=%sd
  33.  
  34. where '%sd' is DOpus' meta-characters for source directory. I know it's
  35. not excatly what you want, but it is a fix.
  36.  
  37. You could always query DOpus through it's ARexx port to see which is the
  38. current selected directory. This has the disadvantage of that your script
  39. has to do it first off if it is to run in the background.
  40.  
  41. nick
  42.  
  43.